package com.hospital.register.dto.base;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ToString
@ApiModel(value = "所有暴露给医院的 api ，共同具有的参数")
public class ApiBaseDto implements Serializable {

    @ApiModelProperty(value = "所在医院的编号")
    @NotBlank(message = "医院编号不可为空")
    private String hoscode;

    @ApiModelProperty(value = "请求时间")
    private Long timestamp;

    @ApiModelProperty("签名秘钥")
    @NotBlank(message = "签名密钥不可为空")
    @JsonIgnore
    private String sign;

}
